package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
* Created by Mybatis Generator on 2023/12/29
*/
@Data
@ApiModel("问诊队列，医生结束问诊后真删")
@Table(name = "tbl_booking_queue")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingQueue extends BaseEntity {
    @Column(name = "group_id")
    private String groupId;

    /**
     * 国家id
     */
    @Column(name = "country_id")
    @ApiModelProperty("国家id")
    private String countryId;

    /**
     * tbl_specialisation中的identification
     */
    @Column(name = "specialisation_id")
    @ApiModelProperty("tbl_specialisation中的identification")
    private String specialisationId;

    /**
     * 病人id
     */
    @Column(name = "mem_id")
    @ApiModelProperty("病人id")
    private String memId;

    /**
     * 医生id
     */
    @Column(name = "selected_doctor_id")
    @ApiModelProperty("医生id")
    private String selectedDoctorId;

    /**
     * 医生id
     */
    @Column(name = "consult_doctor_id")
    @ApiModelProperty("医生id")
    private String consultDoctorId;

    /**
     * 实时位置 通过group_country_specialisation分组
     */
    @Column(name = "queue_no")
    @ApiModelProperty("实时位置 通过group_country_specialisation分组")
    private Integer queueNo;

    /**
     * 展示位置
     */
    @Column(name = "position_no")
    @ApiModelProperty("展示位置")
    private Integer positionNo;

    @Column(name = "departed_on")
    @ApiModelProperty("医生端接通时间")
    private Date departedOn;

    /**
     * type(0 in-clinic,1 in-clinic(appointment),2 online consult,3 appointment)
     */
    @ApiModelProperty("type(0 in-clinic,1 in-clinic(appointment),2 online consult,3 appointment)")
    private Integer type;

}